package com.sg.dto.biz.framework.res;


import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


@Data
public class TypeEncodingDto extends BaseDto implements Serializable {

    /**
     * 编码ID:
     */
    @ApiModelProperty("编码ID")
    private String codeId;

    /**
     * 编码:
     */
    @ApiModelProperty("编码")
    private String code;

    /**
     * 编码名称:
     */
    @ApiModelProperty("编码名称")
    private String codeName;
    /**
     * 类型ID:
     */
    @ApiModelProperty("类型ID")
    private String typeId;
    /**
     * 类型的编码:
     */
    @ApiModelProperty("类型的编码")
    private String typeCode;
    /**
     * 排序:
     */
    @ApiModelProperty("排序")
    private Long orderNumber;
    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;
    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;
    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 是否存档:
     */
    @ApiModelProperty("是否存档")
    private String isArchive;
    /**
     * 是否推送前端缓存 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否推送前端缓存")
    private String isPushCache;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        TypeEncodingDto that = (TypeEncodingDto) o;
        return codeId == that.codeId && code == that.code && codeName == that.codeName && typeId == that.typeId && typeCode == that.typeCode && orderNumber == that.orderNumber && operationInductionId == that.operationInductionId && operateTime == that.operateTime && subjectLifeCycle == that.subjectLifeCycle && isArchive == that.isArchive && isPushCache == that.isPushCache;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), codeId, code, codeName, typeId, typeCode, orderNumber, operationInductionId, operateTime, subjectLifeCycle, isArchive, isPushCache);
    }
}
